<?php


declare (strict_types=1);

namespace app\store\controller\store;

use app\store\controller\Controller;
use app\store\model\store\Menu as MenuModel;
use think\db\exception\DataNotFoundException;
use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException;

/**
 * 机构后台菜单管理
 * Class Menu
 * @package app\store\controller\store
 */
class Menu extends Controller
{
    /**
     * 菜单列表
     * @return array
     * @throws DataNotFoundException
     * @throws DbException
     * @throws ModelNotFoundException
     */
    public function list()
    {
        $model = new MenuModel;
        $list = $model->getList();
        return $this->renderSuccess(compact('list'));
    }
}
